from flask import Flask,redirect,url_for

app = Flask(__name__)

@app.route('/')
def home():
    return "Hello,this is the main page <h1>HELLO<h1>"
@app.route('/<name>')
def user(name):
    return f"Hello, {name}! Welcome to your page."
# Redirect example
@app.route("/admin")
def admin():
    return redirect(url_for("home"))
if __name__ == '__main__':
    app.run(debug=True)